<html>
	<head>
		<title>表单验证</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</head>
	<body>
		<form id="form_login">
			<input type="text" id="string" value="" placeholder="字符串" datatype="s3-6" errormsg="请输入3-6位的字符！" />
			<input type="text" id="number" value="" placeholder="纯数字" datatype="n" errormsg="请输入数字！" />
			<input type="text" id="mobile" value="" placeholder="手机号码" datatype="m" errormsg="手机号码格式错误！" />
			<input type="text" id="email" value="" placeholder="电子邮箱" datatype="e" errormsg="电子邮箱格式错误！" />
			<input type="text" id="cardnum" value="" placeholder="身份证号" datatype="c" errormsg="身份证号格式错误！" />
			<input type="submit" value="提交" />
		</form>
		<script type="text/javascript" src="./formValid_v1.0.0.min.js"></script>
		<script type="text/javascript">
			(function(){
				formValid({
					form: 'form_login',
					invalid: true,
					invalidMsg: '您的输入包含非法字符，请重新输入',
					type: 'submit'
				});
			})();
		</script>
	</body>
</html>
